﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartAgricultureService.Tables
{
    [Table("Log")]
    public class LogEntry
    {
        [Key]
        [MaxLength(50)]
        public string Id { get; set; }
        [MaxLength(50)]
        public string DeviceId { get; set; }
        [MaxLength(2048)]
        public string Message { get; set; }
        public DateTime CreateDate { get; set; }
        public virtual DeviceEntry Device { get; set; }
    }
}